package com.example.cardgame;

import java.io.Serializable;

public class UserInfo implements Serializable {
    private String name;
    private String gender;
    private String studentId;
    private String phone;
    private String email;
    private String hobbies;
    private int highScore;

    public UserInfo() {
        this.name = "张三";
        this.gender = "男";
        this.studentId = "20210001";
        this.phone = "13800138000";
        this.email = "zhangsan@example.com";
        this.hobbies = "旅游, 阅读";
        this.highScore = 0;
    }

    // Getter and Setter methods
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getHobbies() {
        return hobbies;
    }

    public void setHobbies(String hobbies) {
        this.hobbies = hobbies;
    }

    public int getHighScore() {
        return highScore;
    }

    public void setHighScore(int highScore) {
        this.highScore = highScore;
    }
}